<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso8859-1">
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="author" content="Alexander Minza">
<link rel="stylesheet" href="office10.css" type="text/css">
<title>! Operator</title>
</head>

<body>

<h1 class="RH1">! Operator</h1>
<p class="T">Returns the factorial of a number. The factorial of a number is 
equal to 1*2*3*...* number.</p>
<p class="RL"><b>Syntax</b></p>
<p class="SYN"><i>number</i><b>!</b></p>
<p class="DT1"><i>Number</i>&nbsp;&nbsp; is any valid
<a href="reference_numeric_expression.htm">numeric expression</a></p>
<p class="RL"><b>Remarks</b></p>
<p class="DT1">If <i>number</i> is negative, the operator returns an error. If
<i>number</i> is not an integer, it is truncated.</p>
<p class="RL"><b>Example</b></p>
<table border="0" cellPadding="4" cellSpacing="4" class="tableup" width="100%">
  <tr>
    <th>Expression</th>
    <th>Description (Result)</th>
  </tr>
  <tr valign="top">
    <td>3!</td>
    <td>Factorial of 3, or 1*2*3 (6)</td>
  </tr>
  <tr valign="top">
    <td>-3!</td>
    <td>First te factorial is calculated and then the result is negated (-6)</td>
  </tr>
  <tr valign="top">
    <td>(-3)!</td>
    <td>Because the number is negative, an error is returned</td>
  </tr>
  <tr valign="top">
    <td>1.9!</td>
    <td>Factorial of the integer of 1.9 (1)</td>
  </tr>
  <tr valign="top">
    <td>0!</td>
    <td>Factorial of 0 (1)</td>
  </tr>
</table>
</td>
</tr>
</tbody>
</table>

</body>

</html>
